package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BsWarHorsePresetsMapper;
import com.ruoyi.system.domain.BsWarHorsePresets;
import com.ruoyi.system.service.IBsWarHorsePresetsService;

/**
 * 战马预设Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-14
 */
@Service
public class BsWarHorsePresetsServiceImpl implements IBsWarHorsePresetsService 
{
    @Autowired
    private BsWarHorsePresetsMapper bsWarHorsePresetsMapper;

    /**
     * 查询战马预设
     * 
     * @param id 战马预设主键
     * @return 战马预设
     */
    @Override
    public BsWarHorsePresets selectBsWarHorsePresetsById(Long id)
    {
        return bsWarHorsePresetsMapper.selectBsWarHorsePresetsById(id);
    }

    /**
     * 查询战马预设列表
     * 
     * @param bsWarHorsePresets 战马预设
     * @return 战马预设
     */
    @Override
    public List<BsWarHorsePresets> selectBsWarHorsePresetsList(BsWarHorsePresets bsWarHorsePresets)
    {
        return bsWarHorsePresetsMapper.selectBsWarHorsePresetsList(bsWarHorsePresets);
    }

    /**
     * 新增战马预设
     * 
     * @param bsWarHorsePresets 战马预设
     * @return 结果
     */
    @Override
    public int insertBsWarHorsePresets(BsWarHorsePresets bsWarHorsePresets)
    {
        return bsWarHorsePresetsMapper.insertBsWarHorsePresets(bsWarHorsePresets);
    }

    /**
     * 修改战马预设
     * 
     * @param bsWarHorsePresets 战马预设
     * @return 结果
     */
    @Override
    public int updateBsWarHorsePresets(BsWarHorsePresets bsWarHorsePresets)
    {
        return bsWarHorsePresetsMapper.updateBsWarHorsePresets(bsWarHorsePresets);
    }

    /**
     * 批量删除战马预设
     * 
     * @param ids 需要删除的战马预设主键
     * @return 结果
     */
    @Override
    public int deleteBsWarHorsePresetsByIds(Long[] ids)
    {
        return bsWarHorsePresetsMapper.deleteBsWarHorsePresetsByIds(ids);
    }

    /**
     * 删除战马预设信息
     * 
     * @param id 战马预设主键
     * @return 结果
     */
    @Override
    public int deleteBsWarHorsePresetsById(Long id)
    {
        return bsWarHorsePresetsMapper.deleteBsWarHorsePresetsById(id);
    }
}
